From 25bcec5cbb6014ed5c88bd1bf75980c2e220aa29 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sat, 12 Sep 2020 14:31:52 +0100 Subject: [PATCH] Properly annotate GtkLayoutManagerClass.create_layout_child() We're missing the ownership transfer rule for the created GtkLayoutChild instance; this makes the virtual function not introspectable. Fixes: #3156 --- gtk/gtklayoutmanager.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gtk/gtklayoutmanager.h b/gtk/gtklayoutmanager.h index 3066dc5660..314d4a0625 100644 --- a/gtk/gtklayoutmanager.h +++ b/gtk/gtklayoutmanager.h @@ -77,6 +77,16 @@ struct _GtkLayoutManagerClass GType layout_child_type; + /** + * GtkLayoutManagerClass::create_layout_child: + * @manager: the #GtkLayoutManager + * @widget: the widget using the @manager + * @for_child: the child of @widget + * + * Create a #GtkLayoutChild instance for the given @for_child widget. + * + * Returns: (transfer full): a #GtkLayoutChild + */ GtkLayoutChild * (* create_layout_child) (GtkLayoutManager *manager, GtkWidget *widget, GtkWidget *for_child); -- 2.30.2